import Vue from 'vue'
import Router from 'vue-router'    

Vue.use(Router)
const router = new Router({
    // mode: 'history',
    base: '',
    linkActiveClass: 'active',
    routes: [
        {
            path: '/home',
            name: 'home', // 智慧全息
            component: () => import('./views/home/Index.vue')
        },
        {
            path: '/error',
            name: 'error', // 服务器升级 or 服务器错误
            component: () => import('./views/Error.vue')
        },
        {
            path: '*',
            redirect: { name: 'home' }
        }
    ]
})


export default router
